Skip to content

London | 26-SDC-March | Zobeir Rigi | Sprint 3 | implement-shell-tools#502

Open
Zobeir-Rigi wants to merge 10 commits into
CodeYourFuture:mainfrom
Zobeir-Rigi:implement-shell-tools
Open

London | 26-SDC-March | Zobeir Rigi | Sprint 3 | implement-shell-tools#502
Zobeir-Rigi wants to merge 10 commits into
CodeYourFuture:mainfrom
Zobeir-Rigi:implement-shell-tools

Conversation

@Zobeir-Rigi
Copy link
Copy Markdown

Self checklist

  • I have titled my PR with Region | Cohort | FirstName LastName | Sprint | Assignment Title
  • My changes meet the requirements of the task
  • I have tested my changes
  • My changes follow the style guide

Shell tools implementation: cat, ls, and wc

@Zobeir-Rigi Zobeir-Rigi added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Apr 18, 2026
Copy link
Copy Markdown
Contributor

@LonMcGregor LonMcGregor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you try rewriting these using a package to manage the arguments? This can make it easier to handle options and command line access.

continue;
}

console.log(file);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you correctly handling the -1 argument?

console.log(lines, path);
} else if (option === "w") {
console.log(words, path);
} else if (option === "c") {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are using else if here. What if someone wanted words and chars but not lines?

@LonMcGregor LonMcGregor added Reviewed Volunteer to add when completing a review with trainee action still to take. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Jun 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Reviewed Volunteer to add when completing a review with trainee action still to take.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants